@import "./public";
.pageHome{
  height: calc(100vh - 40px);
  @include scroll(8px);
  position: relative;
  display: flex;
}
.page{
  height: 100%;
  overflow: auto;
  align-items: center;
  flex: 1;
  .imgContainer{
    transition: all .3s;
    transform:scale(1);
    display: inline-block;
  }
  img{
    cursor: default;
  }
}
.center{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.tools{
  $height:30px;
  width: 230px;
  bottom:30px;
  height: fit-content;
  display: block;
  margin: auto;
  .toolHome{
    // background: rgba(255,255,255,.8);
    border-radius: 4px;
    height:$height;
    display: flex;
    align-items: center;
    font-size: 12px;
    background: rgba(0, 0, 0, .5);
    margin-top: 4px;
    // box-shadow: 0 0 10px rgba(80, 80, 80, 0.2);
    // margin: 15px 0;
  }
  $bg: rgba(113, 132, 231, 0.8);
  .btn{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 32px;
    background: $bg;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(80, 80, 80, 0.2);
    border-radius: 4px;
    margin: 0 4px;
    transition: all .3s;
    transform:scale(1);
    &:hover{
      transform:scale(1.1);
    }
  }

  .scale{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border: 1px solid #fff;
    margin: 0 4px;
    padding: 0 4px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
    border-radius: 4px;
  }
  .icon{
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: $bg;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(80, 80, 80, 0.2);
    margin: 0 4px;
    transition: all .3s;
    transform:scale(1);
    &:hover{
      transform:scale(1.1);
    }
  }
  .err{
    background: rgba(231, 113, 113, 0.8);
  }
  .query{
    background: rgba(6, 110, 218, 0.8);
  }
  .info{
    color: #ffffff;
    padding: 0 8px;
    text-shadow: 0 0 2px rgb(0,0,0);
  }
  .inputHome{
    display: flex;
  }
  input{
    display: inline-block;
    outline: none;
    width: 20px;
    font-size: 10px;
    height: 18px;
    padding:0;
    margin-right: 2px;
    border: 1px solid #efefef;
  }
}
.cart{
  width: 500px;
  height:300px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 0 10000px rgba(238,242,248,.9);
  cursor: move;
  &:before{
    content: "";
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    box-sizing: border-box;
    border: 2px solid #6ccfff;
  }
  .leftUp,.leftDown,.rightUp,.rightDown,
  .left,.right,.top,.bottom,.cartBtn{
    position: absolute;
    filter: drop-shadow(0 0 2px rgba(0,0,0,.3));
  }
  .cartBtn{
    padding: 4px;
    font-size: 18px;
    color: #ffffff;
    right: -30px;
    border: 1px solid #ffffff;
    cursor: pointer;
  }
  .query{
    top: 10px;
    color: #6ccfff;
  }
  .close{
    top: 40px;
    color: #ff6c9b;
  }
  .leftUp,.leftDown,.rightUp,.rightDown{
    border-width: 4px;
    border-color: #ffffff;
    border-style: solid;
    padding: 8px;
  }
  .left,.right{
    background: #ffffff;
    height: 20px;
    width: 4px;
    cursor: ew-resize;
  }
  .top,.bottom{
    background: #ffffff;
    width: 20px;
    height: 4px;
    cursor: ns-resize;
  }
  .leftUp{
    left: 0;
    top: 0;
    border-right: none;
    border-bottom: none;
    cursor: nwse-resize;
  }
  .leftDown{
    left: 0;
    bottom: 0;
    border-right: none;
    border-top: none;
    cursor: nesw-resize;
  }
  .rightUp{
    right: 0;
    top: 0;
    border-left: none;
    border-bottom: none;
    cursor: nesw-resize;
  }
  .rightDown{
    right: 0;
    bottom: 0;
    border-left: none;
    border-top: none;
    cursor: nwse-resize;
  }
  .left{
    left: 0;
    top:50%;
    margin-top: -10px;
  }
  .top{
    top:0;
    left:50%;
    margin-left: -10px;
  }
  .right{
    right: 0;
    top:50%;
    margin-top: -10px;
  }
  .bottom{
    bottom:0;
    left:50%;
    margin-left: -10px;
  }
}
.rightTool{
  flex: 0;
  min-width: 250px;
  padding: 8px;
  box-sizing: border-box;
}
